package com.example.spring;

import cn.example.spring.SpringConfig;
import cn.example.spring.service.StudentService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ClassName:test05
 * Package:com.example.spring
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/10-10:31
 * @Version:v1.0
 */
public class test05 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        StudentService studentService = context.getBean("studentService", StudentService.class);
        studentService.deleteStudent();
    }
}
